package com.zshan.clinic.database.model;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * 医生挂号统计
 */
public class StatDoctorRegisterDaily implements Serializable {
    /** 主键ID */
    private Long id;

    /** 诊所ID */
    private Long clinicId;

    /** 医生ID */
    private Long doctorId;

    /** 统计日期 */
    private LocalDate statDate;

    /** 预约数 */
    private Integer reservedCount;

    /** 挂号数 */
    private Integer registerCount;

    /** 签到数 */
    private Integer checkinCount;

    /** 看诊数 */
    private Integer diagnosedCount;

    /** 退号数 */
    private Integer refundedCount;

    /** 过期数 */
    private Integer expiredCount;

    /** 创建时间 */
    private Date createTime;

    /** 更新时间 */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getClinicId() {
        return clinicId;
    }

    public void setClinicId(Long clinicId) {
        this.clinicId = clinicId;
    }

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public LocalDate getStatDate() {
        return statDate;
    }

    public void setStatDate(LocalDate statDate) {
        this.statDate = statDate;
    }

    public Integer getReservedCount() {
        return reservedCount;
    }

    public void setReservedCount(Integer reservedCount) {
        this.reservedCount = reservedCount;
    }

    public Integer getRegisterCount() {
        return registerCount;
    }

    public void setRegisterCount(Integer registerCount) {
        this.registerCount = registerCount;
    }

    public Integer getCheckinCount() {
        return checkinCount;
    }

    public void setCheckinCount(Integer checkinCount) {
        this.checkinCount = checkinCount;
    }

    public Integer getDiagnosedCount() {
        return diagnosedCount;
    }

    public void setDiagnosedCount(Integer diagnosedCount) {
        this.diagnosedCount = diagnosedCount;
    }

    public Integer getRefundedCount() {
        return refundedCount;
    }

    public void setRefundedCount(Integer refundedCount) {
        this.refundedCount = refundedCount;
    }

    public Integer getExpiredCount() {
        return expiredCount;
    }

    public void setExpiredCount(Integer expiredCount) {
        this.expiredCount = expiredCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StatDoctorRegisterDaily other = (StatDoctorRegisterDaily) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getClinicId() == null ? other.getClinicId() == null : this.getClinicId().equals(other.getClinicId()))
            && (this.getDoctorId() == null ? other.getDoctorId() == null : this.getDoctorId().equals(other.getDoctorId()))
            && (this.getStatDate() == null ? other.getStatDate() == null : this.getStatDate().equals(other.getStatDate()))
            && (this.getReservedCount() == null ? other.getReservedCount() == null : this.getReservedCount().equals(other.getReservedCount()))
            && (this.getRegisterCount() == null ? other.getRegisterCount() == null : this.getRegisterCount().equals(other.getRegisterCount()))
            && (this.getCheckinCount() == null ? other.getCheckinCount() == null : this.getCheckinCount().equals(other.getCheckinCount()))
            && (this.getDiagnosedCount() == null ? other.getDiagnosedCount() == null : this.getDiagnosedCount().equals(other.getDiagnosedCount()))
            && (this.getRefundedCount() == null ? other.getRefundedCount() == null : this.getRefundedCount().equals(other.getRefundedCount()))
            && (this.getExpiredCount() == null ? other.getExpiredCount() == null : this.getExpiredCount().equals(other.getExpiredCount()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getClinicId() == null) ? 0 : getClinicId().hashCode());
        result = prime * result + ((getDoctorId() == null) ? 0 : getDoctorId().hashCode());
        result = prime * result + ((getStatDate() == null) ? 0 : getStatDate().hashCode());
        result = prime * result + ((getReservedCount() == null) ? 0 : getReservedCount().hashCode());
        result = prime * result + ((getRegisterCount() == null) ? 0 : getRegisterCount().hashCode());
        result = prime * result + ((getCheckinCount() == null) ? 0 : getCheckinCount().hashCode());
        result = prime * result + ((getDiagnosedCount() == null) ? 0 : getDiagnosedCount().hashCode());
        result = prime * result + ((getRefundedCount() == null) ? 0 : getRefundedCount().hashCode());
        result = prime * result + ((getExpiredCount() == null) ? 0 : getExpiredCount().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", clinicId=").append(clinicId);
        sb.append(", doctorId=").append(doctorId);
        sb.append(", statDate=").append(statDate);
        sb.append(", reservedCount=").append(reservedCount);
        sb.append(", registerCount=").append(registerCount);
        sb.append(", checkinCount=").append(checkinCount);
        sb.append(", diagnosedCount=").append(diagnosedCount);
        sb.append(", refundedCount=").append(refundedCount);
        sb.append(", expiredCount=").append(expiredCount);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}